package com.rogue.employee.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.rogue.common.mybatis.base.BaseEntity;
import lombok.Data;

import java.io.Serializable;

/**
 * 部门和服务表
 * @author Yeah
 * @TableName hs_department
 */
@TableName(value ="hs_department")
@Data
public class HsDepartment extends BaseEntity implements Serializable {
    /**
     * 部门ID
     */
    @TableId
    private Long id;

    /**
     * 部门名称
     */
    private String name;

    /**
     * 父ID
     */
    private Long parentId;

    /**
     * 删除标志
     */
    @TableLogic
    @TableField("is_deleted")
    private Integer deleted;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}